<?php

/**
 * 使用 Smarty 模板
 * ============================================================================
 * * 版权所有 2012 铭迈（上海）实业有限公司，并保留所有权利。
 * 网站地址: http://www.mingmailtd.com/；
 * ----------------------------------------------------------------------------
 * 仅用于公司内部人员使用。
 * ============================================================================
 * $Author: zhangmingming $
 * $Id: lib_smart.php 2012/6/25 15:08:40 $
 */

define('S_PATH', str_replace('includes/cls_smarty.php', '', str_replace('\\', '/', __FILE__)));
define('SMARTY_DIR', S_PATH . 'includes/Smarty-3.1.10/libs/');

require_once SMARTY_DIR . 'Smarty.class.php';

class Smarty_MMOA extends Smarty {
	function __construct()
	{
		parent::__construct();
		
		$this->setTemplateDir(S_PATH.'themes/default/');
		$this->setConfigDir(S_PATH.'data/configs/');
		$this->setCompileDir(S_PATH.'temp/templates_c/');
		$this->setCacheDir(S_PATH.'temp/caches/');
		
		$this->caching = false;
		//$this->caching = Smarty::CACHING_LIFETIME_CURRENT;
		$this->assign('app_name', 'MMOA');
		$this->assign('TemplateDir','themes/default/');
	}
}
?>